const mongoose = require("./db");

// 创建集合之前，先创建集合字段的约束对象
const meetSchema = new mongoose.Schema({
    meetId:  {type: String},
    name: {type: String},
    type: {type:String},    // s:10-, m:10~20, l:20+
    count: {type: Number},
    state: {type: Boolean}, // true已占用，未占用false
    config: {type: Array},
    meetingId: {type:String}
})
// 暴露集合对象，以备在当前集合上对数据进行增删改查
module.exports = mongoose.model("meet", meetSchema);
